home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 332 / libfp / makefile < prev    next >
Encoding:
Makefile  |  1988-10-20  |  686 b   |  41 lines

  1. #
  2. # Floating point code written by Johann. Single-precision only, using
  3. # the "Fast Floating Point" representation. The file "fpdiv.s" is
  4. # actually derived from "_fpdiv.c" but has to be modified by hand
  5. # to create an entry point without a leading underscore.
  6. #
  7.  
  8. OBJ=    fpcmp.o \
  9.     fpconv.o \
  10.     fpdiv.o \
  11.     fpadd.o \
  12.     fpmul.o \
  13.     fp_prt.o \
  14.     fp_scan.o \
  15.     printf.o \
  16.     scanf.o
  17.  
  18. LIBM=libm.a
  19.  
  20. CC=cc
  21. AR=ar
  22.  
  23. CFLAGS= -O -DFLOATS=1
  24. ARMODE= q
  25.  
  26. .c.o :
  27.     $(CC) -c $(CFLAGS) $<
  28.     $(AR) $(ARMODE) $(LIBM) $*.o
  29.  
  30. .s.o :
  31.     $(CC) -c $(CFLAGS) $<
  32.     $(AR) $(ARMODE) $(LIBM) $*.o
  33.  
  34. all: $(LIBM)
  35.     $(ECHO) Floating Point Library complete
  36.  
  37. $(LIBM): $(OBJ)
  38.  
  39. clean:
  40.     $(RM) $(LIBM)
  41.